﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using Triad.Common;
namespace Triad.Web.Views.Examples
{
    /// <summary>
    /// Examples of dialog boxes and notifications
    /// </summary>
    public partial class DialogBoxes : Triad.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSSError_Click(object sender, EventArgs e)
        {
            // using: Triad.common - jsPanel is auto created for javascript injection
            RemoteJScript.ShowError(Err_Type.mError, "Server Side Error Message!",JSPanel);
        }

        protected void btnSSWarn_Click(object sender, EventArgs e)
        {
            // using: Triad.common
            RemoteJScript.ShowError(Err_Type.mWarning, "Server Side Warning Message!",JSPanel);
        }

        protected void btnSSInfo_Click(object sender, EventArgs e)
        {
            // using: Triad.common
            RemoteJScript.ShowError(Err_Type.mInfo, "Server Side Informational Message!",JSPanel);
        }
    }
}
